import React from "react"
import { Button } from "antd"
import { useNavigate } from "react-router-dom"
import B from "../B"
import logo from "@assets/images/2.jpeg"
const A = () => {
  const navigate = useNavigate()
  return (
    <div>
      A<Button onClick={() => navigate("/b")}>B</Button>
      <B />
      <img src={logo} alt="logo" />
    </div>
  )
}

export default A
